package cloudgamesaumysql

import (
	"gorm.io/gorm"
	"time"
)

/*
  @author liubogeng
  @date   2025/4/9 11:17
*/

// CGGameAUDirectPurchaseLog 云游戏直购记录同步日志表
type CGGameAUDirectPurchaseLog struct {
	ID             int64          `json:"id" gorm:"column:id;type:bigint;primaryKey;autoIncrement;comment:ID"`
	LogId          string         `json:"log_id" gorm:"column:log_id;type:varchar(255);not null;default:'';comment:LogId"`
	RequestHeader  string         `json:"request_header" gorm:"column:request_header;type:text;comment:请求头"`
	RequestBody    string         `json:"request_body" gorm:"column:request_body;type:text;comment:请求体"`
	ResponseHeader string         `json:"response_header" gorm:"column:response_header;type:text;comment:响应头"`
	ResponseBody   string         `json:"response_body" gorm:"column:response_body;type:text;comment:响应体"`
	ResponseCode   int64          `json:"response_code" gorm:"column:response_code;type:bigint;not null;default:0;comment:响应状态码"`
	CreatedAt      time.Time      `json:"created_at" gorm:"column:created_at;type:datetime;comment:该条记录创建时间"`
	UpdatedAt      time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime;comment:该条记录修改时间"`
	DeletedAt      gorm.DeletedAt `json:"-" gorm:"index;type:datetime;comment:该条记录删除时间"`
}

func (CGGameAUDirectPurchaseLog) TableName() string {
	return "z_cg_game_au_direct_purchase_log_2025_07"
}
